#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class myPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit myPushButton(QWidget *parent = nullptr);

    myPushButton (QString normalImage,QString pressImage = "");

    QString normalImagePath;
    QString pressImagePath;

    //弹跳特效
    void zoomdown();
    void zoomup();

    //重写按下和释放
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);

signals:

};

#endif // MYPUSHBUTTON_H
